package com.jbp.config;

import com.jbp.exception.RRException;

public class GlobConfig {
    //金币倍率
    public static final int moneyTimes = 10;

    //运行环境
//    public static final String env = "job";
//    运行环境
//    public static final String env = "api";

    public static int getType(String type) {
        if ("one".equals(type)) {
            return 1;
        } else if ("five".equals(type)) {
            return 5;
        } else if ("ten".equals(type)) {
            return 10;
        } else if ("hundred".equals(type)) {
            return 100;
        }
        return Integer.parseInt(type);
    }
}
